package ibmetp.mis.serviceImpl;

import ibmetp.mis.common.Constants;
import ibmetp.mis.dao.SysParamDao;
import ibmetp.mis.service.PageService;
import ibmetp.mis.service.SysParamService;
import ibmetp.mis.vo.Page;
import ibmetp.mis.vo.SysParam;
/**
 * SysParamService类实现
 * @author ZHANG YU TING
 *
 */

public class SysParamServiceImpl implements PageService,SysParamService{
	private SysParamDao sd=new SysParamDao();
	
	/**
	 * 分页查询
	 */
	public Page getPage(int pageNo, int pageSize, Object object) {
		// TODO Auto-generated method stub
		Page page=sd.getSysParamPage(pageNo, pageSize, object);
		return page;
		
	}
	
	public String addSysParam(SysParam sysparamVO) {
		// TODO Auto-generated method stub
		//if(sd.getSysParamById(sysparamVO.getSysparamId())!=null)
		{
			//return Constants.SYSPARAM_EXISTS;
		}
		sd.addSysParam(sysparamVO);
		return null;
	}

	public void deleteSysParamById(String sysParamIds) {
		sd.deleteSysParamById(sysParamIds);
		// TODO Auto-generated method stub

	}

	public String updateSysParam(SysParam sysparamVO) {
	
		// TODO Auto-generated method stub
		//if(sd.getSysParamById(sysparamVO.getSysparamId())!=null)
		{
			//return Constants.SYSPARAM_EXISTS;
		}
		sd.updateSysParam(sysparamVO);
		return null;
	}

	public SysParam getSysParamById(Long id) {
		// TODO Auto-generated method stub
		return sd.getSysParamById(id);
	}

}
